package edu.eas.auth.service;

import edu.eas.common.domain.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author cql
 */
@FeignClient("eas-admin")
public interface AdminService {

    /**
     * 根据账号查询管理员信息
     *
     * @param username
     * @return
     */
    @GetMapping("/admin/loadByUsername")
    UserDto loadUserByUsername(@RequestParam String username);

}
